﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Xml.Linq;

namespace SD.UI
{
    public partial class AddService : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                ContractTab.Visible = false;
                FundingTab.Visible = false;
            }
        }

        protected void ddlSubType_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (ddlSubType.SelectedValue == "Contract")
            {
                ContractTab.Visible = true;
                FundingTab.Visible = false;
            }
            else if (ddlSubType.SelectedValue == "Funding")
            {
                FundingTab.Visible = true;
                ContractTab.Visible = false;
            }            
        }

        protected void btnBack_Click(object sender, EventArgs e)
        {
            Response.Redirect("Services.aspx");
        }
    }
}
